vcProgram
Program is an executable program that can be run by executor objects. Every executor, by default, has its own a built-in program.
See in: Overview
Module: vcExecutor
Parent: vcObject
Children -
Referenced by: vcRobotExecutor.Program, vcViewAnimation.Program
Properties
Learn how to use properties here. The properties are also inherited from the parent class.
| Name | Type | Access | Description |
| MainRoutine | vcRoutine | R | Gets the main routine of the program. |
| Name | String | RW | Gets or sets the name of the program. |
| Properties | vcPropertyContainer | R | Gets the properties of this program. |
| Routines | vcObservableList[vcRoutine] | R | Gets a list of all routines in the program other than the main routine. |
Methods
Learn how to use methods here. The methods are also inherited from the parent class.
| Name | Return Type | Parameters | Description |
| createRoutine | vcRoutine | String name | Creates a new routine of a given name in the program.See moreParameters: name (String): Routine's name. Returns: vcRoutine: the new routine. Exceptions: ValueError: When given routine name is empty or not unique. |
| findRoutine | vcRoutine | String name | Finds a routine matching a given name in the program.See moreParameters: name (String): Routine's name. Returns: vcRoutine: The found routine. None if no routine was found. |
Events
Learn how to use events here. The events are also inherited from the parent class.
| Name | Parameters | Description |
| OnStatementAdded | vcStatement statement | Triggered when a statement is added to the program. Parameters: statement (vcStatement): The added statement. |
| OnStatementRemoving | vcStatement statement | Triggered when a statement is removed from the program. Parameters: statement (vcStatement): The removed statement. |